/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.task.common.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

import java.util.concurrent.ScheduledFuture;

/**
 * 统计考勤定时任务Entity
 * @author 郑晓乐
 * @version 2017-07-24
 */
public class Task extends DataEntity<Task> {
	
	private static final long serialVersionUID = 1L;
	private String warehouse;		// 仓库
	private String taskId;		// 任务编号
	private String schedulinginformation;		// 班次
	private String company;		// 国家
	private ScheduledFuture<?> taskHandle;
	private String trigger;

	public Task() {
		super();
	}

	public Task(String id){
		super(id);
	}

	@Length(min=0, max=255, message="仓库长度必须介于 0 和 255 之间")
	public String getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(String warehouse) {
		this.warehouse = warehouse;
	}
	
	@Length(min=1, max=255, message="任务编号长度必须介于 1 和 255 之间")
	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	
	@Length(min=0, max=255, message="班次长度必须介于 0 和 255 之间")
	public String getSchedulinginformation() {
		return schedulinginformation;
	}

	public void setSchedulinginformation(String schedulinginformation) {
		this.schedulinginformation = schedulinginformation;
	}
	
	@Length(min=0, max=255, message="国家长度必须介于 0 和 255 之间")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public void setTaskHandle(ScheduledFuture<?> taskHandle) {
		this.taskHandle = taskHandle;
	}

	public ScheduledFuture<?> getTaskHandle() {
		return taskHandle;
	}

	public String getTrigger() {
		return trigger;
	}

	public void setTrigger(String trigger) {
		this.trigger = trigger;
	}
}